from fastapi import APIRouter, Depends

from middlewares.middlewares import admin_required

# 创建v1路由器
v1 = APIRouter()
v1_admin = APIRouter(dependencies=[Depends(admin_required)])

# 创建v2路由器
v2 = APIRouter()

# 添加管理员权限控制装饰器
from views.admin_views import *
from views.views import *
from views.tools import *

